package com.serene.authority.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.serene.authority.admin.entity.MyUserJob;

/**
 * @author serence
 * @date 2021/5/8 21:30
 */

public interface UserJobService extends IService<MyUserJob> {

    /**
     * 通过岗位ID查询岗位使用数量
     *
     * @param jobId 岗位id
     * @return
     */
    public Integer queryUserJobCountByJobId(Integer jobId);

    /**
     * 通过用户ID删除用户和岗位关联
     *
     * @param userId
     * @return
     */
    public Integer deleteUserJobCountByUserId(Integer userId);
}
